using ApprovalTests;
using ApprovalTests.Reporters;
using Microsoft.SmallBasic.Library;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace SmallBasicFun.Tests.Quiz
{
	[TestClass]
	
	public class TreeQuizTest
	{
		private static Primitive angles = 0;
		private static Primitive length = 1;
		private static Primitive turn = 1;

		[TestMethod]
		public void TestQuiz()
		{
			SmallBasicFun.Quiz.StartTreeQuizAt += question1;
			ApprovalHelper.ApproveProgramWindow();
		}


		private static void question1()
		{
			//make the current length twice what it is
			length = length*2;
		}


		private static void decreaseturn()
		{
			turn = turn - 1;
		}

		private static void setninety()
		{
			angles[turn] = 90;
		}

		private static void anglefive()
		{
			angles[5] = 36;
		}
	}
}